-- GENERATED SPELL FOR [Ambershard Destroyer] --


function spell0_11782(pUnit, Event) --@Boulder,n/a--
pUnit:FullCastSpellOnTarget(19701,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11782', 3000, 1)
end

function spell1_11782(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(13728,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11782', 2281, 1)
end

function Sorts_11782(pUnit, Event)
local choix_sorts_11782 = math.random(0, 1)
if choix_sorts_11782 == 0 then
pUnit:RegisterEvent('spell0_11782', 1, 1)
end
if choix_sorts_11782 == 1 then
pUnit:RegisterEvent('spell1_11782', 1, 1)
end
end

function mob11782_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11782', math.random(1500, 3000), 1)
end

function mob11782_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11782_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11782_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11782, 1, 'mob11782_Action')
RegisterUnitEvent(11782, 2, 'mob11782_Leave')
RegisterUnitEvent(11782, 3, 'mob11782_Kill')
RegisterUnitEvent(11782, 4, 'mob11782_Die')
